import { Viewer } from 'cesium'
export type TypeMode = '3D' | '2D' | 'Columbus'
export const sceneModeToggle = (viewer: Viewer, type: TypeMode = '3D') => {
  const scene = viewer.scene
  switch (type) {
    case '3D':
      scene.morphTo3D(0)
      break
    case '2D':
      scene.morphTo2D(0)
      break
    case 'Columbus':
      scene.morphToColumbusView()
      break
  }
}
